package com.springboot.application.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhengzihong
 * @version 1.0.0
 * @date 2018/10/31
 * @Description
 */
@RestController
public class HelloController {


    @Value("${zzh.name}")
    private String name;

    @RequestMapping("/hello")
    public String getHello() {
        return "say " + name;
    }
}
